/*
 * @Author: 秦福凯
 * @LastEditTime: 2025-05-22 09:34:03
 * @Description: 运动会后台路由
 */

import {RouteRecordRaw} from "vue-router";
import Home from "@/views/home.vue";
import Login from "@/views/login/login.vue";


// 业务相关的路由
import busi_routes from './busiRoutes'
export const routes: RouteRecordRaw[] = [
	// 重定向
	// { path: '/', redirect: '/login' },
	{ path: '/', redirect: '/home' },

	{
		path: '/403',
		meta: {
			title: '没有权限',
			noAuth: true,
		},
		component: () => import('../views/pages/403.vue'),
	},
	{
		path: '/404',
		meta: {
			title: '找不到页面',
			noAuth: true,
		},
		component: () => import('../views/pages/404.vue'),
	},
	{
		path: '/home',
		name: 'Home',
		component: Home,
		redirect:'/homeIndex?icon=HomeFilled',
		children: [
			...busi_routes,
		],
	},
	{
		path: '/login',
		name: 'Login',
		component: Login,
	},
	
];
